package cc.vant.wechat.model;

import android.app.Application;

import java.net.Socket;
import java.util.HashMap;

import io.netty.util.ResourceLeakDetector;

public class MyApplication extends Application {
    //    public static final String SERVERIP = "10.1.89.247";
//    public static final String SERVERIP = "192.168.191.2";
    public static final String SERVERIP = "192.168.43.111";

    public static final byte[] DELIMITER = "~$`8^".getBytes();

    public static final int PORT = 5566;
    private String session;
    private HashMap<Integer, Socket> chatMap;//TODO:Socket

    public MyApplication() {
        ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.ADVANCED);
    }


    public HashMap<Integer, Socket> getChatMap() {
        return chatMap;
    }

    public void setChatMap(HashMap<Integer, Socket> chatMap) {
        this.chatMap = chatMap;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }
}